#include"my_map.h"
#include<iostream>
#include"my_set.h"
#include"my_map.h"
#include<map>
#include<set>

void func(const bit::set<int>& x)
{
	auto k = x.begin();
	while (k != x.end())
	{
		std::cout << *(k++) << std::endl;
	}
}

void func(const bit::map<int, int> x)
{
	auto k = x.begin();
	while (k != x.end())
	{
		std::cout << k->second << std::endl;
		k++;

	}
}
int main()
{
	bit::map<int, int> k;
	k.insert(std::make_pair(1, 1));
	for (int i = 0; i < 20; i++)
	{
		k.insert(std::make_pair(i, 0));
		k[i] = i+1;
	}
	auto item = k.begin();
	item->first;
	while (item != k.end())
	{
		
		std::cout <<(*item).first <<"  "<<item->second<< std::endl;
		++item;
	}
	func(k);
	/*bit::set<int> j;
	j.insert(5);
	for (int i = 0; i < 20; i++)
	{
		j.insert(i);
	}
	auto k = j.begin();
	while ( k!=j.end())
	{
		std::cout << *(k++) << std::endl;
		
	}
	func(j);*/


	return 0;
}